﻿<%@ Page Language="C#" MasterPageFile="~/Teamp.Master" AutoEventWireup="true" CodeBehind="DatHang.aspx.cs" Inherits="CungUngXayDung.DatHang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
    <div>
    <table width="100%">
      
        <tr>
            <td colspan="2"><h1>ĐẶT HÀNG</h1></td>
        </tr>

         <tr>
            <td colspan="2" style="padding:20px;">
                <div><h2>Chi tiết hóa đơn</h2></div>
                <div><asp:GridView ID="dgvGioHang" runat="server" AutoGenerateColumns="False" 
                        EnableModelValidation="True" Width="100%">
                    <Columns>
                        <asp:BoundField DataField="TenSanPham" HeaderText="Tên SP" />
                        <asp:BoundField DataField="SoLuong" HeaderText="SL" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="TenDonViTinh" HeaderText="Đơn vị tính" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DonGia" HeaderText="Đơn giá" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ThanhTien" HeaderText="Thành tiền" 
                            InsertVisible="False" >
                        <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>
                    </Columns>
                    </asp:GridView></div>


                    <br />
                    <div>
                        Tổng giá trị hóa đơn : 
                            <span class="product_price_large"><asp:Label ID="lbTongTriGiaHoaDon" runat="server" Text="Label"></asp:Label></span>
                    </div>

                     <br />
                     <div>
                         Phần trăm ưu đãi&nbsp; : 
                            <span class="product_price_large"><asp:Label ID="lbPhanTramUuDai" runat="server" Text="Label"></asp:Label></span>
                    </div>
                     <br />
                       <div>
                           Tổn tiền thanh toán&nbsp; : 
                            <span class="product_price_large"><asp:Label ID="lbTongTienThanhToan" runat="server" Text="Label"></asp:Label></span>
                    </div>
                    <div style="text-align:right;">
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/GioHang.aspx">Chỉnh sửa giỏ hàng</asp:HyperLink>
                    </div>
            </td>
        </tr>
        

        <tr>
            <td colspan="2"><br /></td>
        </tr>

        <tr>
            <td colspan="2" align="left" ><b>Thông tin khách hàng cần ghi đầy đủ</b><br /></td>
        </tr>
          <tr>
            <td width="150px" align="right">Mã khách hàng </td>
            <td>
                <asp:TextBox ID="txtMaKhachHang" runat="server" Width="350px"  Font-Bold="True" 
                        Font-Size="X-Large" ForeColor="#999999" Height="30px"></asp:TextBox></td>
        </tr>
        <tr>
            <td width="150px" align="right">Tên khách hàng </td>
            <td>
                <asp:TextBox ID="txtTenKhachHang" runat="server" Width="350px"  Font-Bold="True" 
                        Font-Size="X-Large" ForeColor="#999999" Height="30px"></asp:TextBox></td>
        </tr>
     
    
      

        <tr>
            <td align="right">Địa chỉ nhận </td>
            <td><asp:TextBox ID="txtDiaChiNhan" runat="server" Width="350px"  Font-Bold="True" 
                        Font-Size="X-Large" ForeColor="#999999" Height="30px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right">Tên người nhận </td>
            <td><asp:TextBox ID="txtTenNguoiNhan" runat="server" Width="350px"  Font-Bold="True" 
                        Font-Size="X-Large" ForeColor="#999999" Height="30px"></asp:TextBox></td>
        </tr>
      
        <tr>
            <td align="right">Nhận hàng vào lúc&nbsp; </td>
            <td>
                 <asp:DropDownList ID="cbGioNhan" runat="server" Width="70px"  Font-Bold="True" 
                        Font-Size="X-Large" ForeColor="#999999" Height="30px">
                </asp:DropDownList>
                &nbsp giờ &nbsp&nbsp
                <asp:DropDownList ID="cbPhutNhan" runat="server" Width="70px"  Font-Bold="True" 
                        Font-Size="X-Large" ForeColor="#999999" Height="30px">
                </asp:DropDownList>
                &nbsp phút
            </td>
        </tr>

        <tr>
            <td colspan="2"><br /></td>
        </tr>
        <tr>
            <td align="right">Ngày &nbsp; </td>
            <td>
                <asp:DropDownList ID="cbNgay" runat="server" Width="70px"  Font-Bold="True" 
                        Font-Size="X-Large" ForeColor="#999999" Height="30px">
                </asp:DropDownList>
                &nbsp&nbsp&nbsp
                <asp:DropDownList ID="cbThang" runat="server" Width="70px"  Font-Bold="True" 
                        Font-Size="X-Large" ForeColor="#999999" Height="30px">
                </asp:DropDownList>

                &nbsp&nbsp&nbsp
                <asp:DropDownList ID="cbNam" runat="server" Width="100px"  Font-Bold="True" 
                        Font-Size="X-Large" ForeColor="#999999" Height="30px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="2"><br /></td>
        </tr>

        <tr>
            <td colspan="2"><br /></td>
        </tr>

        <tr>
            <td colspan="2" valign="middle" align="center">
                <asp:ImageButton ID="ImageButton2" runat="server"  onclick="DatHang_Click" ImageUrl="~/images/button/button_DatHang.png"  ImageAlign="AbsMiddle" />
                 &nbsp
                &nbsp
                <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Default.aspx">Tiếp tục mua hàng</asp:HyperLink>
               
            </td>
        </tr>
         <tr>
            <td colspan="2" class="style1"><br /></td>
        </tr> 
        <tr>
            <td colspan="2"><br /></td>
        </tr>
       
    </table>
</div>
</asp:Content>

<asp:Content ID="Content2" runat="server" contentplaceholderid="head">
    <style type="text/css">
        .style1
        {
            height: 20px;
        }
    </style>
</asp:Content>


